package com.liupei.enums;

/**
 *  定义的code
 * @ClassNameEnumsCode
 * @Description
 * @Author liupei
 * @Emaile 3268727800@qq.com
 * @Date2021/3/12 16:40
 * @Version V1.0
 **/
public enum ResultCode {
    SUCCESS(200,"请求成功"),
    ERROR(500,"请求出错");
    //状态码
    private Integer code;
    //返回信息
    private String msg;

    ResultCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }}
